//part1:C03:ex3.8.cpp
//used while statement to replace all with 'X'.
#include <iostream>
#include <string>

int main(void)
{
    using namespace std;
    string s;
    cout << "Enter a string, include space.\n";
    getline(cin, s);
    int i = 0;
    while (s[i] != '\0')
    {
        s[i] = 'X';
        ++i;

    }
    cout << s << endl;
    
    return 0;
}